package org.mdrtwell.jdk15;

public class ShowEnum3 {
	public static void main(String[] args) {
		for (OpConstans op : OpConstans.values()) {
			System.out.printf("%s%n\t%s%n", op, op.getDiscription());
		}
	}

	enum OpConstans {
		TURN_LEFT, TURN_RIGHT, SHOOT;
		public String getDiscription() {
			switch (this.ordinal())
				{
				case 0:
					return "����ת";
				case 1:
					return "����ת";
				case 2:
					return "���";
				default:
					return null;
				}
		}
	}
}
